package com.yex.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.yex.common.utils.PageUtils;
import com.yex.dao.InvestLogDao;
import com.yex.entity.InvestLogEntity;
import com.yex.service.InvestLogService;
import com.yex.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("investLogService")
public class InvestLogServiceImpl extends ServiceImpl<InvestLogDao, InvestLogEntity> implements InvestLogService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<InvestLogEntity> page = this.selectPage(
                new Query<InvestLogEntity>(params).getPage(),
                new EntityWrapper<InvestLogEntity>()
        );

        return new PageUtils(page);
    }

}
